<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router) {
    //疾病列表
    $router->resource('illness', '\catchAdmin\disease\controller\Illness');

    //获取疾病数据
    $router->get('getdisease', '\catchAdmin\disease\controller\Illness@getdisease');

    //病种
    $router->get('diseaseType/index', '\catchAdmin\disease\controller\DiseaseType@index');
    $router->any('GetDiseaseTypeList', '\catchAdmin\disease\controller\DiseaseType@getDiseaseTypeList');
    $router->post('getLikeDisease', '\catchAdmin\disease\controller\DiseaseType@getLikeDisease');
    $router->post('diseaseType/save', '\catchAdmin\disease\controller\DiseaseType@save');
    $router->post('diseaseType/update', '\catchAdmin\disease\controller\DiseaseType@update');
    $router->post('diseaseType/delete', '\catchAdmin\disease\controller\DiseaseType@delete');
    $router->get('getDiseaseType', '\catchAdmin\disease\controller\DiseaseType@getDiseaseType');
    $router->resource('diseaseTemplate', \catchAdmin\disease\controller\DiseaseTemplate::class);

    $router->get('getDiseaseData', '\catchAdmin\disease\controller\Illness@getDiseaseData');
})->middleware('auth');

